package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_MAP_ENTITY"
 *     
*/
public class CcpMapEntity implements Serializable {

    /** identifier field */
    private String cmeGuid;

    /** nullable persistent field */
    private String cmeName;

    /** nullable persistent field */
    private String serviceNo;

    /** nullable persistent field */
    private String isDisplay;

    /** nullable persistent field */
    private String cmeUrl;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public CcpMapEntity(String cmeGuid, String cmeName, String serviceNo, String isDisplay, String cmeUrl, String reserved1, String reserved2, String reserved3) {
        this.cmeGuid = cmeGuid;
        this.cmeName = cmeName;
        this.serviceNo = serviceNo;
        this.isDisplay = isDisplay;
        this.cmeUrl = cmeUrl;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public CcpMapEntity() {
    }

    /** minimal constructor */
    public CcpMapEntity(String cmeGuid) {
        this.cmeGuid = cmeGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CME_GUID"
     *         
     */
    public String getCmeGuid() {
        return this.cmeGuid;
    }

    public void setCmeGuid(String cmeGuid) {
        this.cmeGuid = cmeGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CME_NAME"
     *             length="50"
     *         
     */
    public String getCmeName() {
        return this.cmeName;
    }

    public void setCmeName(String cmeName) {
        this.cmeName = cmeName;
    }

    /** 
     *            @hibernate.property
     *             column="SERVICE_NO"
     *             length="10"
     *         
     */
    public String getServiceNo() {
        return this.serviceNo;
    }

    public void setServiceNo(String serviceNo) {
        this.serviceNo = serviceNo;
    }

    /** 
     *            @hibernate.property
     *             column="IS_DISPLAY"
     *             length="1"
     *         
     */
    public String getIsDisplay() {
        return this.isDisplay;
    }

    public void setIsDisplay(String isDisplay) {
        this.isDisplay = isDisplay;
    }

    /** 
     *            @hibernate.property
     *             column="CME_URL"
     *             length="300"
     *         
     */
    public String getCmeUrl() {
        return this.cmeUrl;
    }

    public void setCmeUrl(String cmeUrl) {
        this.cmeUrl = cmeUrl;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="200"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="200"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="200"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cmeGuid", getCmeGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpMapEntity) ) return false;
        CcpMapEntity castOther = (CcpMapEntity) other;
        return new EqualsBuilder()
            .append(this.getCmeGuid(), castOther.getCmeGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCmeGuid())
            .toHashCode();
    }

}
